/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2021-12-08 16:22:25
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-05-31 10:01:12
 */
import request from '@/utils/request'

//订单快报
export const orderExpress = data => {
    return request({
        method: 'post',
        url: '/spHomePage/orderExpress',
        data
    })
}
// 销售简报
export const salesKit = data => {
    return request({
        method: 'post',
        url: '/spHomePage/salesKit',
        data
    })
}

// 趋势图
export const trendChart = params => {
    return request({
        method: 'get',
        url: '/spHomePage/trendChart',
        params
    })
}
// 证书预警
export const certificateAlert = data => {
    return request({
        method: 'post',
        url: '/spHomePage/certificateAlert',
        data
    })
}
// 获取树形结构
export const treeselect = params => {
    return request({
        method: 'get',
        url: 'system/dept/treeselect',
        params
    })
}
export const getTreeList = params => {
    return request({
        method: 'get',
        url: 'system/user/list',
        params
    })
}

// 数据看板
export const dataBoard = data => {
    return request({
        method: 'post',
        url: '/spHomePage/dataBoard',
        data
    })
}

// - 待办中心列表
export const toDoList = data => {
    return request({
        method: 'post',
        url: '/spHomePage/toDoList',
        data
    })
}
// - 待办中心列表
export const showAll = params => {
    return request({
        method: 'get',
        url: '/spHomePage/showAll',
        params
    })
}
// - 数据看板排序
export const dataBoardSort = data => {
    return request({
        method: 'post',
        url: '/spHomePage/dataBoardSort',
        data
    })
}

// - 整体排序
export const allSort = data => {
    return request({
        method: 'post',
        url: '/spHomePage/sort',
        data
    })
}

// 日历
export const calendar = data => {
    return request({
        method: 'post',
        url: '/spHomePage/calendar',
        data
    })
}

// 待办中心列表
export const toDoCenter = params => {
    return request({
        method: 'get',
        url: '/spHomePage/toDoCenter',
        params
    })
}

// 展示右边组件
export const showCalendar = params => {
    return request({
        method: 'get',
        url: '/spHomePage/showCalendar',
        params
    })
}

// 通知列表
export const notice = params => {
    return request({
        method: 'get',
        url: '/spHomePage/notice',
        params
    })
}
